import cv2
import os
import numpy as np
import matplotlib.pyplot as plt
import cv2 as cv
from PIL import Image
import pytesseract as tess

# 验证码识别
img = cv2.imread('train_image/dollor.png')
text = tess.image_to_string(img, lang='chi_sim', config='psm 7')
print("车牌号为:%s" % text)